package com.recycle.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.recycle.common.annotation.Excel;
import com.recycle.common.core.domain.BaseEntity;

/**
 * 订单信息详情对象 order_detail
 * 
 * @author recycle
 * @date 2023-03-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情id */
    @Excel(name = "订单详情编号")
    private Long orderDetailId;

    /** 订单id */
    @Excel(name = "订单编号")
    private Long orderId;

    /** 预计收益 */
    @Excel(name = "预计收益")
    private BigDecimal preIncome;

    /** 实际收益 */
    @Excel(name = "实际收益")
    private BigDecimal actualIncome;

    /** 实际/预计百分比 */
    @Excel(name = "实际/预计百分比")
    private BigDecimal percentage;

    /** 回收员 */
    @Excel(name = "回收员")
    private String recycler;

    /** 回收员联系方式 */
    @Excel(name = "回收员联系方式")
    private String recyclerContact;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setOrderDetailId(Long orderDetailId) 
    {
        this.orderDetailId = orderDetailId;
    }

    public Long getOrderDetailId() 
    {
        return orderDetailId;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setPreIncome(BigDecimal preIncome) 
    {
        this.preIncome = preIncome;
    }

    public BigDecimal getPreIncome() 
    {
        return preIncome;
    }
    public void setActualIncome(BigDecimal actualIncome) 
    {
        this.actualIncome = actualIncome;
    }

    public BigDecimal getActualIncome() 
    {
        return actualIncome;
    }
    public void setPercentage(BigDecimal percentage) 
    {
        this.percentage = percentage;
    }

    public BigDecimal getPercentage() 
    {
        return percentage;
    }
    public void setRecycler(String recycler) 
    {
        this.recycler = recycler;
    }

    public String getRecycler() 
    {
        return recycler;
    }
    public void setRecyclerContact(String recyclerContact) 
    {
        this.recyclerContact = recyclerContact;
    }

    public String getRecyclerContact() 
    {
        return recyclerContact;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderDetailId", getOrderDetailId())
            .append("orderId", getOrderId())
            .append("preIncome", getPreIncome())
            .append("actualIncome", getActualIncome())
            .append("percentage", getPercentage())
            .append("recycler", getRecycler())
            .append("recyclerContact", getRecyclerContact())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("endTime", getEndTime())
            .append("remark", getRemark())
            .toString();
    }
}
